package com.zls.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 农事表
 */
@Data
@Component
public class TTask {
    @TableId(value = "ID",type = IdType.AUTO)
    private Integer id;
    private Integer productBatchesId;//产品批次id
    private String content;//任务内容
    /**
     * 1.下发成功 2.待审核 3.完成 4.异常
     */
    private Integer state;
    private String img1;//图片地址1
    private String img2;//图片地址2
    private String img3;//图片地址3
    private String img4;//图片地址4
    private Integer producterId;//生产人员id
    private Integer sysUserId;//基地管理员id
    private Integer farmId;//农场id
    private Date activityDate;//开始时间
    private String area;//面积
    private String descContent;//完成内容情况
    private Date finishDate;//完成时间
    private Date createDate;//创建时间
    //一对一
    @TableField(exist = false)
    private ProductBatches productBatches;
    @TableField(exist = false)
    private TProducter tProducter;
    @TableField(exist = false)
    private SysUser sysUser;
    @TableField(exist = false)
    private TFarm tFarm;
}
